import { IPageParams, IStu } from '../type';
import service,{ baseURL } from './index';

export const student = {
  fileImportUrl: `${baseURL}/student/fileImport`,
  fileExportUrl: `${baseURL}/student/fileExport`,
  findPage: (data: IPageParams) => {
    return service({
      url: `/student/findPage`,
      method: 'post',
      data,
    });
  },
  delete: (data: string[]) => {
    return service({
      url: `/student/deleteByIds`,
      method: 'delete',
      data,
    });
  },
  save: (data: IStu) => {
    return service({
      url: `/student/save`,
      method: 'post',
      data,
    });
  },
}